math function trunc

The trunc() function returns the value of the argument when truncated towards zero.